<div class="row-fluid">
    <div class="span12">
        <h3 class="heading">Materias <?php echo $usuario; ?></h3> 
        <table class="table table-striped table-bordered dTableR" id="dt_a">
            <thead>
                <tr>                                          
                    <th>Materia</th>
                    <th>Orden</th>
                    <th>Descripcion</th>                    
                    <th>Acciones</th>     
                </tr>
            </thead>
            <tbody>
                <?php foreach ($materias as $mat): ?>
                    <?php $idMat = $mat['Materia']['id']; ?>
                    <tr>                                                 
                        <td><?php echo $mat['Materia']['nombre']; ?></td>
                        <td><?php echo $mat['Materia']['orden']; ?></td>
                        <td><?php echo $mat['Materia']['descripcion']; ?></td>                        
                        <td>
                           <?php 
                                echo $this->Html->image("iconos/edit.png", array(
                                    "title" => "Editar",
                                    'url' => array('action' => 'editar', $mat['Materia']['id'])
                                ));
                            ?>                             
                             <?php 
                                echo $this->Html->image("iconos/elim.png", array(
                                    "title" => "Eliminar",
                                    'url' => array('action' => 'eliminar', $mat['Materia']['id'])
                                ));
                            ?>
                        </td>
                    </tr>
                    <?php
                endforeach;
                ?>
            </tbody>
        </table>                
    </div>   
</div>
<!-- sidebar -->
<?php echo $this->element('sidebar/materias'); ?>
<!-- fin sidebar -->
<?php echo $this->element('jstablas'); ?>